package day4.Exer;

public class Dog {
    String name;
    public Dog(String name){
        this.name=name;
    }
    public Dog(){
    }
    public void bite(Person a){
        System.out.println("狗咬"+a.name+"不识好人心！");
    }
    public void bite(Hedgehog b){
        System.out.println("狗咬刺猬无从下口！");
    }
    public void bite(Dog c){
        System.out.println("狗咬狗一嘴毛！");
    }
}
